﻿<Window x:Class="Gene.win_2DPlane"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="win_2DPlane" Height="825" Width="960" Opacity="1" MouseWheel="mainPanel_MouseWheel" AllowsTransparency="False" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow" Topmost="False">
 
    <Grid Height="726" Width="950" Name="MainGrid" >
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="212*" />
            <ColumnDefinition Width="315*" />
            <ColumnDefinition Width="423*" />
        </Grid.ColumnDefinitions>
        <Canvas Height="428" Background="AliceBlue"  HorizontalAlignment="Left" ToolTip="Drag to move left right,double click by left/right button to zoom in/out, mouse wheel also works for zoom in/out" Name="mainPanel" VerticalAlignment="Top" Width="900" MouseMove="mainPanel_MouseMove" DragOver="mainPanel_DragOver" MouseLeftButtonDown="mainPanel_MouseLeftButtonDown" MouseRightButtonDown="mainPanel_MouseRightButtonDown" MouseUp="mainPanel_MouseUp" Grid.ColumnSpan="3" Margin="0,4,0,0"></Canvas>
        <Grid Name="AnnotationGrid" MouseMove="AnnotationGrid_MouseMove" Margin="0,454,0,-17" Grid.ColumnSpan="3">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="400*" />
                <ColumnDefinition Width="500*" />
            </Grid.ColumnDefinitions>
            <Label Content="Annotations:" Name="label1" Margin="0,7,333,254" />
            <ComboBox Name="comboBoxAnnotationList" Margin="0,7,99,254" HorizontalAlignment="Right" Width="226" SelectionChanged="comboBoxAnnotationList_SelectionChanged" />
            <Label Content="Gene Name" FlowDirection="LeftToRight" FontSize="12" HorizontalContentAlignment="Center" Name="labelGeneName" Margin="326,7,0,254" HorizontalAlignment="Left" Width="99" FontFamily="Microsoft YaHei" Grid.ColumnSpan="2" />
            <ScrollViewer Margin="0,41,6,-18" Grid.ColumnSpan="2" Name="AnnotationScroll">

                <Canvas Height="242" HorizontalAlignment="Left" Margin="0,0,0,0" Name="canvasAnnotation" VerticalAlignment="Top" Width="903" ClipToBounds="True" Background="Lime" Grid.ColumnSpan="2"></Canvas>

            </ScrollViewer>
            
            <Label Content="Orientation:" Height="34" HorizontalAlignment="Left" Margin="418,5,0,0" Name="label2" VerticalAlignment="Top" Width="97" FontSize="14" FontWeight="Bold" Grid.ColumnSpan="2" />
            <Label Height="33" HorizontalAlignment="Right" Margin="0,1,310,0" Name="labelDirection" VerticalAlignment="Top" Width="126" Foreground="Blue" FontWeight="Bold" FontSize="18" Grid.Column="1" />
                 </Grid>
        <Label Content="How to control:" Height="28" HorizontalAlignment="Left" Margin="-2,-38,0,0" Name="label3" VerticalAlignment="Top" Width="128" FontSize="14" FontWeight="Bold" />
        <Label Content="Drag to move left right,double click by left/right button to zoom in/out, mouse wheel also works for zoom in/out" Height="27" HorizontalAlignment="Left" Margin="117,-36,0,0" Name="labelHelp" VerticalAlignment="Top" Width="780" Grid.ColumnSpan="3" />
    </Grid>
</Window>
